package com.qys.livesMall.app.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户奖励历史记录表
 * </p>
 *
 * @author 
 * @since 2023-11-02
 */
@Getter
@Setter
@TableName("h2_app_user_reward_history")
@Schema(name = "UserRewardHistory", description = "用户奖励历史记录表")
public class UserRewardHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "类型 邀请奖励:ir")
    private String type;

    @Schema(description = "对应关系id")
    private Long correspondingId;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "奖励金额")
    private BigDecimal money;
}
